import logging
import pytest
from typing import List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()

"""
支持读取的jsoncase文件中的中文字符
给收集到的用例按ASCII码排序
"""
def pytest_collection_modifyitems(items):
    for item in items:
        item.name = item.name.encode('utf-8').decode('unicode-escape')
        item._nodeid = item.nodeid.encode('utf-8').decode('unicode-escape')


